package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OrdeRecordMapper;
import com.ruoyi.system.domain.OrdeRecord;
import com.ruoyi.system.service.IOrdeRecordService;

/**
 * 订单记录表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-09
 */
@Service
public class OrdeRecordServiceImpl implements IOrdeRecordService 
{
    @Autowired
    private OrdeRecordMapper ordeRecordMapper;

    /**
     * 查询订单记录表
     * 
     * @param id 订单记录表主键
     * @return 订单记录表
     */
    @Override
    public OrdeRecord selectOrdeRecordById(Long id)
    {
        return ordeRecordMapper.selectOrdeRecordById(id);
    }

    /**
     * 查询订单记录表列表
     * 
     * @param ordeRecord 订单记录表
     * @return 订单记录表
     */
    @Override
    public List<OrdeRecord> selectOrdeRecordList(OrdeRecord ordeRecord)
    {
        return ordeRecordMapper.selectOrdeRecordList(ordeRecord);
    }

    /**
     * 新增订单记录表
     * 
     * @param ordeRecord 订单记录表
     * @return 结果
     */
    @Override
    public int insertOrdeRecord(OrdeRecord ordeRecord)
    {
        return ordeRecordMapper.insertOrdeRecord(ordeRecord);
    }

    /**
     * 修改订单记录表
     * 
     * @param ordeRecord 订单记录表
     * @return 结果
     */
    @Override
    public int updateOrdeRecord(OrdeRecord ordeRecord)
    {
        return ordeRecordMapper.updateOrdeRecord(ordeRecord);
    }

    /**
     * 批量删除订单记录表
     * 
     * @param ids 需要删除的订单记录表主键
     * @return 结果
     */
    @Override
    public int deleteOrdeRecordByIds(Long[] ids)
    {
        return ordeRecordMapper.deleteOrdeRecordByIds(ids);
    }

    /**
     * 删除订单记录表信息
     * 
     * @param id 订单记录表主键
     * @return 结果
     */
    @Override
    public int deleteOrdeRecordById(Long id)
    {
        return ordeRecordMapper.deleteOrdeRecordById(id);
    }
}
